﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SampleWebApplication
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        Db_connect db = new Db_connect();


        protected void Page_Load(object sender, EventArgs e)
        {
            string Grid_Query = "Select * from dbo.customer";
            GridView1.DataSource = db.GetDataSet(Grid_Query);
            GridView1.DataBind();
        }
    }
}